Class PhysicsUtils
Inheritance
System.Object
PhysicsUtils
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
public static class PhysicsUtils
Methods
CreatePrimitive(PrimitiveType)
Create gameobject with motphys collider by primitive type.
Declaration
public static GameObject CreatePrimitive(PrimitiveType primitiveType)
Parameters
Type | Name | Description |
---|---|---|
PrimitiveType | primitiveType |
Returns
Type | Description |
---|---|
GameObject |
CreatePrimitive(PrimitiveType, Vector3)
Create gameobject with motphys collider by primitive type.
Declaration
public static GameObject CreatePrimitive(PrimitiveType primitiveType, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
PrimitiveType | primitiveType | |
Vector3 | position |
Returns
Type | Description |
---|---|
GameObject |