pub unsafe extern "C" fn PxScene_addActor_mut(
    self_: *mut PxScene,
    actor: *mut PxActor,
    bvh: *const PxBVH
) -> bool
Expand description

Adds an actor to this scene.

If the actor is already assigned to a scene (see [PxActor::getScene]), the call is ignored and an error is issued.

If the actor has an invalid constraint, in checked builds the call is ignored and an error is issued.

You can not add individual articulation links (see PxArticulationLink) to the scene. Use #addArticulation() instead.

If the actor is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already.

When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor’s local space.

True if success