Most visited

Recently visited

PhysicsBody.RigidBodyType

public static final enum PhysicsBody.RigidBodyType
extends Enum<PhysicsBody.RigidBodyType>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.PhysicsBody.RigidBodyType>
     ↳ com.viro.core.PhysicsBody.RigidBodyType


The RigidBodyType of a PhysicsBody controls how the body responds to forces and collisions.

Summary

Enum values

PhysicsBody.RigidBodyType  DYNAMIC

Dynamic rigid bodies are fully simulated physics objects. 

PhysicsBody.RigidBodyType  KINEMATIC

Kinematic rigid bodies are not themselves affected by forces and collisions (they are manually moved) but they are able to cause cause collisions. 

PhysicsBody.RigidBodyType  STATIC

Static rigid bodies do not move; other objects can collide with them but they do not otherwise participate in the physics simulation. 

Public methods

static PhysicsBody.RigidBodyType valueOf(String name)
static final RigidBodyType[] values()

Enum values

DYNAMIC

PhysicsBody.RigidBodyType DYNAMIC

Dynamic rigid bodies are fully simulated physics objects. They are affected by forces and collisions, and are the most performance-intensive physics body.

KINEMATIC

PhysicsBody.RigidBodyType KINEMATIC

Kinematic rigid bodies are not themselves affected by forces and collisions (they are manually moved) but they are able to cause cause collisions. They are moved manually. For example, use a Kinematic body to simulate a user pushing objects with her finger, or to simulate projectiles like bullets.

STATIC

PhysicsBody.RigidBodyType STATIC

Static rigid bodies do not move; other objects can collide with them but they do not otherwise participate in the physics simulation. Examples include walls, floor, and other other fixtures in your scene.

Public methods

valueOf

PhysicsBody.RigidBodyType valueOf (String name)

Parameters
name String

Returns
PhysicsBody.RigidBodyType

values

RigidBodyType[] values ()

Returns
RigidBodyType[]

Hooray!