According to the manual,
- A game object with collider but absent rigid body is static.
- Never transform a static object.
- Never put rigid bodies in both parent and child game objects.
Let’s say we have the following structure.
Legend:
ParentGameObject ( component(s) )
ChildGameObject_0 ( component(s) )
ChildGameObject_1 ( component(s) )
...
ChildGameObject_N ( component(s) )
Tank (Rigidbody)
Body (MeshCollider)
Turret (MeshCollider)
Question:
Is Turret considered a static object?
Thanks in advance.
Velastine.
It’s a child of an object with a rigidbody, so I’d say no.
I’m curious as to why you’d need to know?
static is for things like buildings. static must not move. ever.
A turret will be moving because its on top of a moving object… also being a turret, chances are it will be rotating to shoot.
Answer is NO.
why no you say?
Because according to the script reference nothing is static until you define it as static either by the checkbox in the top right corner of the inspector when you have selected the gameObject.
OR
You define it as static by:
gameObject.isStatic = true;