Latest  | Search | Go
Edit this page   |   Attach file 

  Home | Tutorials | Technical Reference | Runtime | API Documentation | ContentCreation > CreatingWeapons > CreatingVehicles > PhysicsSystems  

Creating arbritrary physics systems via Reality Builder

Tutorial Author:Clifton Poli

NetRigidBody

  • Tower of Tokamak:
    Tower of Tokamak

  • Tower of Tok round 2:
    Tower of Tok round 2

Introduction

The NetRigidBody is the basic physics object in Reality. With this you can put realistic physics on objects using various primitives, and tweak their settings within Reality Builder. To make an existing prefab in your scene into a NetRigidBody, select the prefab then select the NetRigidBody script in the class list and click the change button, this will magically transform your prefab into a NetRigidBody! smile

Note:        You should use the Center Pivot Modifier on your Prefab before converting it to a NetRigidBody, in order for it to rotate properly in correlation to its rigid body.

Properties

  • AllowInclusionExclusionLists
    • Whether the lighting on this NetRigidbody acknowledges Lights' Inclusion/Exclusion Lists.

  • BoundingBoxScale
    • % scale of Model BBox to use for rigid body

Note:        This setting is usefull when you are making an oddly shaped object into a NetRigidBody, while using one of the tok primitives, rather than making into a multi tok object. So if the BBox collision of the tok is not matching the actual size of the prefab simply tweak this setting.

  • CollidesRays
    • True/false, this determines whether the object recieves collisions from raychecks i.e. weapons fire.

  • EnablePhysicsInEditor
    • Enable rigid body physics for this object within Reality Builder.

Note:        This is a great setting to test out different settings on the fly for your tok objects, however be sure to do this on a copy of your object becuase saving after the physics have run will also save the new transform of the object.

  • Friction
    • 0.5 for medium friction

  • ImpactSoundSet
    • Sound set used upon collision impact

  • Mass
    • Mass of the Rigid Body.

  • Restitution
    • 0.7 for medium bouncyness.

  • RigidBodyType
    • Primitive type of the Rigid Body. Box, Sphere, Cylinder, or Capsule.

ChainedLightEntity

physicstutpic3.jpg

Introduction

The ChainedLightEntity script simulates a chain (which makes use of the particle system) which is attached too the prefab. To make an existing prefab in your scene into a ChainedLightEntity, select the prefab then select the ChainedLightEntity script in the list and click the change button.

Properties

  • Editor Physics
    • Enables rigid body physics for this object within Reality Builder. To refresh physics state with new values when physics are already enabled, set this to False then True again.

  • Swing Magnitude
    • The magnitude of the impulse that the chain swings with.

  • Swing Period
    • The period the chain's swinging.

  • Light Name
    • Light that this system binds too.

  • Shadow Name
    • Shadow Projector that this system binds too.

AttachedBody

Introduction

The Attachedbody script allows the user to create Tokamak objects in the scene that are not activated until they have been impacted and threshold broken from something like a vehicle or weapons fire. This is demonstrated in the RuntimeDemo on the lamp posts and fence pieces. To make an existing prefab in your scene into a AttachedBody, select the prefab then select the AttachedBody script in the list and click the change button.

Properties

  • AllowInclusionExclusionLists
    • Whether the lighting on this NetRigidbody acknowledges Lights' Inclusion/Exclusion Lists.

  • AttachedLightName
    • Name of a Light that will turn off when this AttachedBody is detached.

  • BoundingBoxScale
    • % scale of Model BBox to use for rigid body

  • BreakageImpulseThreshold
    • Amount of impulse (Newtons * Seconds) required to dislodge the AttachedBody

  • CollidesRays
    • Determines if the object recieves raycheck collision or not.

  • EnablePhysicsInEditor
    • You guessed right!

  • Friction
    • 0.5 for medium friction.

  • ImpactSoundSet
    • Sound set used upon collision impact.

  • Mass
    • The mass of the AttachedBody.

  • Restitution
    • 0.7 for medium bouncyness.

  • RigidBodyType
    • Primitive type of the Rigid Body.

Attachment sort Action Size Date Who Comment
physicstutpic1.jpg manage 146.1 K 21 Nov 2004 - 06:38 Main.guest Tower of Tokamak
physicstutpic2.jpg manage 141.6 K 21 Nov 2004 - 06:42 Main.guest Tower of Tok round 2
physicstutpic3.jpg manage 35.3 K 21 Nov 2004 - 07:44 Main.guest Swingin Light

PhysicsSystems   Edit | Attach | Ref-By | Printable | Diffs | r1.3 | > | r1.2 | > | r1.1 | More