Unigine.ShapeCapsule Class
Inherits from: | Shape |
ShapeCapsule Class
Properties
float Height#
The current height of the capsule.
float Radius#
The current radius of the capsule.
vec3 TopCap#
The coordinates of the center of the bottom hemisphere of the capsule.
vec3 BottomCap#
The coordinates of the center of the top hemisphere of the capsule.
Members
ShapeCapsule ( ) #
Constructor. Creates a new capsule with the zero radius and the zero height.ShapeCapsule ( float radius, float height ) #
Constructor. Creates a new capsule with given dimensions.Arguments
- float radius - Radius of the capsule in units.
- float height - Height of the capsule in units.
ShapeCapsule ( Body body, float radius, float height ) #
Constructor. Creates a new capsule with given dimensions and adds it to a given body.Arguments
- Body body - Body, to which the capsule will belong.
- float radius - Radius of the capsule in units.
- float height - Height of the capsule in units.
vec3 GetBottomCap ( ) #
Returns the coordinates of the center of the top hemisphere of the capsule.Return value
Coordinates of the center of the capsule's top hemisphere.vec3 GetTopCap ( ) #
Returns the coordinates of the center of the bottom hemisphere of the capsule.Return value
Coordinates of the center of the capsule's bottom hemisphere.Last update:
13.12.2024
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter