Sprite Factory

ReadMe
Release Notes
Overview
Using the Editor
Upgrading

Concepts
Sprites
Master Sprites
Sprite Groups
Colliders
Locators
Material Sets
SpriteUpdater
SpriteCamera

Advanced
Working in Multiple Projects

Classes
Runtime Classes

Videos
Overview
Creating Sprites
Sprite Inspector
Frame Events
Collision System
Locator System
Material Sets

Links
Sprite Factory Site
Web Documentation
Support
Contact

SpriteFactory.Sprite.GetRigidbody

C#: RigidbodyInfo GetRigidbody (int colliderId)
JS: function GetRigidbody (colliderId : int) : RigidbodyInfo

Description
Get a specific collider's rigidbody by collider index. This function returns a RigidbodyInfo, which is a wrapper for Rigidbody and Rigidbody2D. This allows you to retrieve either type of rigidbody.

Returns null if passed an invalid index.


C#: RigidbodyInfo GetRigidbody (string colliderName)
JS: function GetRigidbody (colliderName : String) : RigidbodyInfo

Description
Get a specific collider's rigidbody by collider name. This function returns a RigidbodyInfo, which is a wrapper for Rigidbody and Rigidbody2D. This allows you to retrieve either type of rigidbody.

Returns null if passed an invalid name.