Commit graph

37 commits

Author SHA1 Message Date
DavidWyand-GG 47787900a4 Change ShapeBase to only test if available meshes
The ShapeBase class tests if all of its meshes are hidden and if so,
then it doesn't render during that frame.  However, if there are no
meshes in the ShapeBase and only nodes then rendering is also skipped.
Unfortunately, this also skips the rendering of any mounted images.
This change allows for a mesh-less skeleton to render any mounted
images.
2013-02-22 15:24:29 -05:00
David Wyand 965336d54d Merge pull request #211 from just-bank/particledata-bitstream-fixes
Fix for issue #210 and #154 for ParticleData sends out-of-range data via BitStream
2013-02-05 11:06:48 -08:00
bank 82de08b57a Fix memory leak (ParticleData and ParticleEmitterData) on using TypeValidator class.
This fixes issue #154
2013-02-01 21:22:03 +04:00
Dmitry a31e6a755c Fixed crash in Con::warnf function. Issue #82 2013-01-30 15:21:22 -05:00
DavidWyand-GG 35374f939e ExtendedMove class and support
The ExtendedMove class can optionally replace the standard Move class to
allow the passing of absolute position and rotation information from the
client's input device to the server.  It is enabled by changing
$TORQUE_EXTENDED_MOVE to true in buildFiles/config/project.conf and
re-running the project generator.
2013-01-23 01:52:46 -05:00
DavidWyand-GG 0e87a8b6b7 New RigidShape method to force client
New forceClientTransform() console method to force a RigidShape's
transform on the client.  This is used when you transform a RigidShape
on the server and want the client to immediately transform rather than
interpolate to the transform.
2013-01-22 18:44:42 -05:00
bank 9b2caeed6a Fix for issue #210 for ParticleData sends out-of-range data via BitStream
1. When addProtectedField used with custom setters, we need to return false, or it will set the value via regular routine after the method exists (change ParticleData::protectedSetTimes() to return false instead of true).

2. The ParticleData::sizes[] needs a custom setter, so the value is clamped in a range of 0.f and MaxParticleSize.

3. The spinRadnomMin and spinRandomMax ParticleData fields need a FRangeValidator, so it auto-clamped in a range of -1000 to 1000, as we are writing data trying to fit the values in 11 bits (as UInt upto 2048 max).
   * The description for those fields needs to be updated to use 1000 instead of 10000.
   * ParticleData::onAdd() should check for values to be in a correct range too.
2013-01-18 15:07:27 +04:00
SilentMike b2e2c7b50f Merge pull request #49 from eightyeight/vehicle-steering
Vehicle steering return-to-centre merged into development branch.
2013-01-11 08:39:35 -08:00
SilentMike 03211bc4fd Merge pull request #140 from eightyeight/missionarea-server-object
Updated logic in MissionArea::getServerObject merged into development branch.
2013-01-09 13:03:35 -08:00
DavidWyand-GG 539fa70a3d Fix for Issue 174 for Turret Targeting Wrong Direction 2012-12-13 19:30:51 -05:00
DavidWyand-GG a2466bfd3a Fix for Issue #152 for Unmatch Bitstream
This corrects for changes made in Pull Request #112.
2012-11-23 13:00:12 -05:00
DavidWyand-GG fa1a0124a9 Merge branch 'healthtexthud' of https://github.com/T3DCE/CE-OSLab into T3DCE-healthtexthud 2012-11-15 11:04:09 -05:00
Daniel Buckmaster 093252ada3 Updated logic in MissionArea::getServerObject.
Before this function would iterate through every server-side object to
find a MissionArea. Now, it stores the server object in a static member
smServerObject. This member is updated in onAdd and onRemove, and returned
by getServerObject.
2012-11-14 09:25:38 +11:00
DavidWyand-GG a803398eb0 Fix for Issue #130 for Decals and Smoothing Groups 2012-11-08 16:56:22 -05:00
DavidWyand-GG 88bb577c82 Fix for Issue #128 for Player First Person Shadow
IMPROVEMENT: By default we stop rendering all Player shadows when in
first person and 'renderFirstPerson' is disabled.  Added flag
'firstPersonShadows' to disable this behavior.
2012-11-08 16:37:11 -05:00
DavidWyand-GG e7beec99db Fix for Issue #110 for Particle Emitter Ejection 2012-11-05 18:03:01 -05:00
DavidWyand-GG 1a3501440f Fix for Issue #111 for BitStream Issues 2012-11-05 16:50:54 -05:00
David Wyand 70415d0787 Merge pull request #109 from DavidWyand-GG/issue108-TurretHeadingNode
Fix for Issue #108 Turret Heading Node
2012-11-05 12:38:10 -08:00
DavidWyand-GG 956f304e4d Fix for Issue #108 Turret Heading Node 2012-11-05 15:36:58 -05:00
DavidWyand-GG c6b6ffc10b For for Issue #106 Convex Shape Bandwidth 2012-11-05 14:27:30 -05:00
DavidWyand-GG 89ad23a925 Fix for Issue #96 for DAE updating crash 2012-10-17 14:45:13 -04:00
David Wyand 394d87cd54 Merge branch 'spawnsphere-transform' of https://github.com/eightyeight/Torque3D into eightyeight-spawnsphere-transform 2012-10-05 16:13:29 -04:00
David Wyand 8f75a228f7 Fix for Issue #62 for Large decal disappears 2012-10-04 16:38:49 -04:00
thecelloman d762ccd248 GuiHealthTextHud. A C++ GuiControl that replaces the scripted numerical health hud. 2012-10-04 16:02:01 -04:00
thecelloman 99e8bcb817 Add getMaxDamage() method. This will be needed for the forthcoming HealthTextHud GuiControl. 2012-10-04 15:55:46 -04:00
David Wyand a3ca8b92ac Merge branch 'aiplayer-fixes' of https://github.com/eightyeight/Torque3D into eightyeight-aiplayer-fixes 2012-10-04 14:00:00 -04:00
Daniel Buckmaster b097c76eda Fixed stream read/write mismatch bug.
It was causing Vehicles to roll forwards with a constant velocity when
stationary, and ignore move->y.
2012-10-03 07:32:06 +10:00
Daniel Buckmaster e3cb30bb1d Added steering return to Vehicle.
It happens in Vehicle::updateMove so it can apply to all vehicle
subclasses. It is applied to both x and y steering.
2012-10-03 07:23:47 +10:00
David Wyand 2d9fa140ed Merge branch 'linux' of https://github.com/just-bank/Torque3D into just-bank-linux 2012-10-02 13:25:08 -04:00
Daniel Buckmaster eae9fc36e5 Added steering centre members to VehicleData.
steeringReturn is the main control for the amount of return in
the steering. Setting it to 0 (the default) disables steering return
completely.

steeringReturnSpeedScale is a multiplier on the amount of effect that
the vehicle's velocity has on its steering return.

powerSteering can be set to eliminate the effect of steering return on
user input. Without this flag set, the user will have a harder time
steering, because the wheels try to return as they steer. If this flag
is set, steering return will not be applied while the user is actually
steering, only when they release.
2012-10-02 21:02:42 +10:00
Daniel Buckmaster f10ea8bbd4 Fixed mAtRest logic when setting static flag. 2012-09-28 07:28:00 +10:00
Daniel Buckmaster 0f22ca64d4 Moved mask updated to protected member set functions. 2012-09-27 08:11:48 +10:00
Daniel Buckmaster f69b4bb1f1 Added a console method to get an AIPlayer's move speed. 2012-09-26 23:30:20 +10:00
Daniel Buckmaster a8205240e3 Made Item network members properly in the editor. 2012-09-26 23:28:58 +10:00
Daniel Buckmaster 7db02d1f80 Added a flag that sets the transform of spawned objects. 2012-09-26 23:27:36 +10:00
bank d2700f881c Source changes needed for Linux build. 2012-09-23 15:31:56 +04:00
DavidWyand-GG 7dbfe6994d Engine directory for ticket #1 2012-09-19 11:15:01 -04:00