Disabling a rigidbody.

How do I disable a rigidbody? If I do rigidbody.active, it tells me to use enabled instead. But rigidbody doesn't have enabled property.

What does "disable" mean, to you? Changing to kinematic with a trigger collider is the closest you can come, other than disabling the entire Game Object or destroying the component.

I have a similar problem with rigidbodies. My game engine as far as collisions are concerned are using the Collision() methods, which always require convex rigidbodies (as far as I can tell)

My problem is whilst handling all velocities, positioning myself that the rigidbodies interfere with eachother as they are conscript of Unity3d’s physics engine. This occurs rarely as I’m using settings which minimise reactions from the physics engine, however…

It’s bad enough having to use rigidbodies to use the Collisions class functions but is there a way to totally disable physics?

(The previous answer here is a little inadequate as it recommends disabling the GameObject or destroying a needed component)

I like Unity3d… personally I feel a bit beaten back by your comment, and so would others.

I wanted to calculate all my own velocities and positions because of the nature of my project.

I have no idea what you mean by using XCode.

I’ve seen similar posts to mine about collisions not being accessible without rigidbodies. This is my main complaint of Unity3d and I’ve coded a workaround if there is no solution for turning physics off. I do want to use Colliders. Not Rigidbodies.

By god, there are many reasons to use Unity3d… not only for PhysX!

Your post is totally deconstructive from a programming point of view.

I’d like to apoligise and let you know the point I raised earlier, was fallible.

Although you can’t “turn off physics” for using Collider function classes and you do need a Rigidbody:

You can turn effects of physics off by clicking in the Rigidbody dialog freeze positions X,Y,Z and likewise for freeze rotations.

You can edit the positions and rotations by coding them in the usual way, whilst using this feature.

yourRigidbody.constraints = RigidbodyConstraints.FreezeAll;

or

yourRigidbody.constraints = RigidbodyConstraints.FreezePosition;
yourRigidbody.constraints = RigidbodyConstraints.FreezeRotation;