mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixes several minor initialization issues that were causing problems with deletion/management of components and entities.
Also makes the ThirdPersonPlayer game object editor selectable again by removing an erroneously set field.
This commit is contained in:
parent
bbf7865a77
commit
2464b620ba
7 changed files with 46 additions and 9 deletions
|
|
@ -69,6 +69,8 @@ PlayerControllerComponent::PlayerControllerComponent() : Component()
|
|||
mFriction = 0.3f;
|
||||
mElasticity = 0.4f;
|
||||
mMaxVelocity = 3000.f;
|
||||
mVelocity = VectorF::Zero;
|
||||
mContactTimer = 0;
|
||||
mSticky = false;
|
||||
|
||||
mFalling = false;
|
||||
|
|
@ -88,7 +90,7 @@ PlayerControllerComponent::PlayerControllerComponent() : Component()
|
|||
|
||||
mDescription = getDescriptionText("A general-purpose physics player controller.");
|
||||
|
||||
mNetFlags.set(Ghostable | ScopeAlways);
|
||||
//mNetFlags.set(Ghostable | ScopeAlways);
|
||||
|
||||
mMass = 9.0f; // from ShapeBase
|
||||
mDrag = 1.0f; // from ShapeBase
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue