class Collider
😔 No documentation found.
public bool IsDynamic { get; }
Return true if this collider is using dynamic physics. Returns false if this is a keyframe body, or a static physics body.
public Rigidbody Rigidbody { get; }
If this collider is part of a Rigidbody then this will return the component that it's attached to. If this is null it's usually a good indication that this collider is either static, world geometry, or a keyframe.
public Nullable<float> Friction { get; set; }
Allows overriding the friction for this collider. This value can exceed 1 to to give crazy grippy friction if you want it to, but the normal value is between 0 and 1.
public Vector3 SurfaceVelocity { get; set; }
Set the local velocity of the surface so things can slide along it, like a conveyor belt
public BBox LocalBounds { get; }
Calculated local bounds of all physics shapes in this collider.
public Action<Collider> OnTriggerEnter { get; set; }
Called when a collider enters this trigger
public Action<Collider> OnTriggerExit { get; set; }
Called when a collider exits this trigger
public Action<GameObject> OnObjectTriggerEnter { get; set; }
Called when a gameobject enters this trigger
public Action<GameObject> OnObjectTriggerExit { get; set; }
Called when a gameobject exits this trigger
public IEnumerable<Collider> Touching { get; }
If we're a trigger, this will list all of the colliders that are touching us. If we're not a trigger, this will list all of the triggers that we are touching.
public Vector3 GetVelocityAtPoint( Vector3 worldPoint )
Get the velocity of this collider at the specific point in word coordinates.
public Vector3 FindClosestPoint( Vector3 worldPoint )
Returns the closest point to the given one between all convex shapes of this body.
public Vector3 LocalPosition { get; set; }
😔 No documentation found.
public Transform LocalTransform { get; set; }
😔 No documentation found.
public Guid Id { get; }
😔 No documentation found.
public T GetComponentInParent( bool includeDisabled = False, bool includeSelf = True )
😔 No documentation found.
public Vector3 LocalScale { get; set; }
😔 No documentation found.
public Rotation LocalRotation { get; set; }
😔 No documentation found.
public T GetComponentInChildren( bool includeDisabled = False, bool includeSelf = True )
😔 No documentation found.
public IEnumerable<T> GetComponentsInChildren( bool includeDisabled = False, bool includeSelf = True )
😔 No documentation found.
public IEnumerable<T> GetComponents( bool includeDisabled = False )
😔 No documentation found.
public T GetComponent( bool includeDisabled = False )
😔 No documentation found.
public IEnumerable<T> GetComponentsInParent( bool includeDisabled = False, bool includeSelf = True )
😔 No documentation found.
public T AddComponent( bool startEnabled = True )
😔 No documentation found.
public Transform WorldTransform { get; set; }
😔 No documentation found.
public bool IsProxy { get; }
😔 No documentation found.
public JsonNode Serialize( GameObject.SerializeOptions options = null )
😔 No documentation found.
public void Deserialize( JsonObject node )
😔 No documentation found.
public void DeserializeImmediately( JsonObject node )
😔 No documentation found.
public int ComponentVersion { get; }
😔 No documentation found.
public T GetOrAddComponent( bool startEnabled = True )
😔 No documentation found.
public Vector3 WorldPosition { get; set; }
😔 No documentation found.
public Rotation WorldRotation { get; set; }
😔 No documentation found.
public Vector3 WorldScale { get; set; }
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public GameObject.NetworkAccessor Network { get; }
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public void DestroyGameObject( )
😔 No documentation found.
public PhysicsBody KeyframeBody { get; }
😔 No documentation found.
public bool Static { get; set; }
😔 No documentation found.
public bool IsConcave { get; }
😔 No documentation found.
public Surface Surface { get; set; }
😔 No documentation found.
public bool IsTrigger { get; set; }
😔 No documentation found.
public void OnPhysicsChanged( )
😔 No documentation found.
public Scene Scene { get; }
😔 No documentation found.
public GameTransform Transform { get; }
😔 No documentation found.
public GameObject GameObject { get; }
😔 No documentation found.
public ComponentList Components { get; }
😔 No documentation found.
public bool Enabled { get; set; }
😔 No documentation found.
public bool Active { get; }
😔 No documentation found.
public ComponentFlags Flags { get; set; }
😔 No documentation found.
public bool IsValid { get; }
😔 No documentation found.
public Action OnComponentStart { get; set; }
😔 No documentation found.
public Action OnComponentUpdate { get; set; }
😔 No documentation found.
public Action OnComponentFixedUpdate { get; set; }
😔 No documentation found.
public Action OnComponentDisabled { get; set; }
😔 No documentation found.
public Action OnComponentDestroy { get; set; }
😔 No documentation found.
public void Destroy( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public void Reset( )
😔 No documentation found.
public void EditLog( string name, object source )
😔 No documentation found.
public ITagSet Tags { get; }
😔 No documentation found.
public void Invoke( float secondsDelay, Action action, CancellationToken ct = null )
😔 No documentation found.
public Action OnComponentEnabled { get; set; }
😔 No documentation found.
public DebugOverlaySystem DebugOverlay { get; }
😔 No documentation found.