Obi  7.0.5
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ColliderShape Struct Reference

Public Types

enum  ShapeType {
  Sphere = 0, Box = 1, Capsule = 2, Heightmap = 3,
  TriangleMesh = 4, EdgeMesh = 5, SignedDistanceField = 6
}
 

Public Member Functions

void SetSign (bool inverted)
 

Public Attributes

Vector4 center
 
Vector4 size
 
ShapeType type
 
float contactOffset
 
int dataIndex
 
int rigidbodyIndex
 
int materialIndex
 
int forceZoneIndex
 
int filter
 
int flags
 

Properties

bool is2D [get, set]
 
bool isTrigger [get, set]
 
float sign [get]
 

Member Data Documentation

Vector4 Obi.ColliderShape.size

box: size of the box in each axis. sphere: radius of sphere (x,y,z), capsule: radius (x), height(y), direction (z, can be 0, 1 or 2). heightmap: width (x axis), height (y axis) and depth (z axis) in world units.


The documentation for this struct was generated from the following file: