This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gamedev:shapes [2012/11/30 15:54] – dragonlord | gamedev:shapes [2020/04/03 21:26] (current) – [Capsule] dragonlord | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| <WRAP youarehere> | <WRAP youarehere> | ||
| - | [[: | + | [[: |
| </ | </ | ||
| ====== Shapes ====== | ====== Shapes ====== | ||
| + | |||
| Shapes are used mainly in colliders to define the over all shape of a collider. Shapes can though also be used for [[gamedev: | Shapes are used mainly in colliders to define the over all shape of a collider. Shapes can though also be used for [[gamedev: | ||
| - | ===== Sphere ===== | + | ====== Sphere |
| A sphere is defined by a position and a radius. Ellipsoids are not supported by this shape only true spheres. | A sphere is defined by a position and a radius. Ellipsoids are not supported by this shape only true spheres. | ||
| ^ Parameter | ^ Parameter | ||
| Line 12: | Line 14: | ||
| |Radius|The length of the radius from the center to the sphere boundary.|0.5| | |Radius|The length of the radius from the center to the sphere boundary.|0.5| | ||
| - | ===== Box ===== | + | ====== Box ====== |
| A box is defined by a position, orientation and the half length of the extends. | A box is defined by a position, orientation and the half length of the extends. | ||
| ^ Parameter | ^ Parameter | ||
| Line 19: | Line 21: | ||
| |Half Extends|The half length of the box main axes or extends.|(0.5, | |Half Extends|The half length of the box main axes or extends.|(0.5, | ||
| - | ===== Cylinder ===== | + | ====== Cylinder |
| A cylinder is defined by a position, orientation, | A cylinder is defined by a position, orientation, | ||
| ^ Parameter | ^ Parameter | ||
| Line 28: | Line 30: | ||
| |Bottom Radius|Radius of the bottom circle face of the cylinder|0.5| | |Bottom Radius|Radius of the bottom circle face of the cylinder|0.5| | ||
| - | ===== Capsule ===== | + | ====== Capsule |
| - | A capsule is defined by a position, orientation, | + | A capsule is defined by a position, orientation, |
| ^ Parameter | ^ Parameter | ||
| |Position|The position of the capsule center.|(0, | |Position|The position of the capsule center.|(0, | ||
| Line 36: | Line 38: | ||
| |Top Radius|Radius of the top circle face of the capsule|0.5| | |Top Radius|Radius of the top circle face of the capsule|0.5| | ||
| |Bottom Radius|Radius of the bottom circle face of the capsule|0.5| | |Bottom Radius|Radius of the bottom circle face of the capsule|0.5| | ||
| + | |||
| + | ====== Hull ====== | ||
| + | A convex hull is defined by a position, orientation, | ||
| + | ^ Parameter | ||
| + | |Position|The position of the capsule center.|(0, | ||
| + | |Orientation|The orientation of the capsule expressed as a quaternion.|(0, | ||
| + | |Points|List of points as 3-Vector values|empty list| | ||