User Tools

Site Tools


gamedev:shapes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gamedev:shapes [2019/05/08 22:17] dragonlordgamedev:shapes [2020/04/03 21:26] (current) – [Capsule] dragonlord
Line 1: Line 1:
 {{tag>physics collider collision shape}} {{tag>physics collider collision shape}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> [[gamedev:colliders|Physics with colliders]] >> **Collision shapes**+[[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:colliders|Physics with colliders]] >> **Collision shapes**
 </WRAP> </WRAP>
 +
 +====== Shapes ======
  
 Shapes are used mainly in colliders to define the over all shape of a collider. Shapes can though also be used for [[gamedev:debugdrawers|Debug Drawers]] which allows to display physics structures easily. Shapes are analytical geometry and always convex. Combining shapes is always an union. Hence combined shapes can very well be concave but not the individual shapes itself. Shapes are used mainly in colliders to define the over all shape of a collider. Shapes can though also be used for [[gamedev:debugdrawers|Debug Drawers]] which allows to display physics structures easily. Shapes are analytical geometry and always convex. Combining shapes is always an union. Hence combined shapes can very well be concave but not the individual shapes itself.
Line 29: Line 31:
  
 ====== Capsule ====== ====== Capsule ======
-A capsule is defined by a position, orientation, half height and twwo radi. The capsule is centered around the position and has the major axis point upwards along the Y-Axis. The half height indicates half the length of the capsule ( from the top sphere to the bottom sphere ). The top and bottom radius indicate the radius of the top and bottom sphere. If both are the same the capsule is a common capsule otherwise it is a tapered capsule.+A capsule is defined by a position, orientation, half height and two radi. The capsule is centered around the position and has the major axis point upwards along the Y-Axis. The half height indicates half the length of the capsule ( from the top sphere to the bottom sphere ). The top and bottom radius indicate the radius of the top and bottom sphere. If both are the same the capsule is a common capsule otherwise it is a tapered capsule.
 ^  Parameter  ^  Description  ^  Default  ^ ^  Parameter  ^  Description  ^  Default  ^
 |Position|The position of the capsule center.|(0,0,0)| |Position|The position of the capsule center.|(0,0,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, and a list of points. The hull shape is defined as the convex hull wrapping all points. Think of it like wrapping the points into a gift paper.
 +^  Parameter  ^  Description  ^  Default  ^
 +|Position|The position of the capsule center.|(0,0,0)|
 +|Orientation|The orientation of the capsule expressed as a quaternion.|(0,0,0,1)|
 +|Points|List of points as 3-Vector values|empty list|
gamedev/shapes.1557353863.txt.gz · Last modified: 2019/05/08 22:17 by dragonlord