gel.forge: Add 'is_Tangible' flag to 'new_circle_Sprite' parameters.

This commit is contained in:
Rod Kay
2024-01-08 09:46:30 +11:00
parent 85d2aca897
commit d86438fe5b
2 changed files with 42 additions and 40 deletions

View File

@@ -128,6 +128,7 @@ is
Mass : in math.Real := 1.0; Mass : in math.Real := 1.0;
Friction : in math.Real := 0.5; Friction : in math.Real := 0.5;
Bounce : in math.Real := 0.5; Bounce : in math.Real := 0.5;
is_Tangible : in Boolean := True;
Radius : in math.Real := 0.5; Radius : in math.Real := 0.5;
Color : in openGL.Color := opengl.Palette.White; Color : in openGL.Color := opengl.Palette.White;
Texture : in openGL.asset_Name := openGL.null_Asset; Texture : in openGL.asset_Name := openGL.null_Asset;
@@ -142,8 +143,8 @@ is
:= physics.Model.Forge.new_physics_Model (shape_Info => (physics.Model.Circle, Radius), := physics.Model.Forge.new_physics_Model (shape_Info => (physics.Model.Circle, Radius),
Mass => Mass, Mass => Mass,
Friction => Friction, Friction => Friction,
Restitution => Bounce); Restitution => Bounce,
-- Site => Vector_3 (Site & 0.0)); is_Tangible => is_Tangible);
begin begin
if Texture = openGL.null_Asset if Texture = openGL.null_Asset
then then

View File

@@ -59,6 +59,7 @@ is
Mass : in math.Real := 1.0; Mass : in math.Real := 1.0;
Friction : in math.Real := 0.5; Friction : in math.Real := 0.5;
Bounce : in math.Real := 0.5; Bounce : in math.Real := 0.5;
is_Tangible : in Boolean := True;
Radius : in math.Real := 0.5; Radius : in math.Real := 0.5;
Color : in openGL.Color := opengl.Palette.White; Color : in openGL.Color := opengl.Palette.White;
Texture : in openGL.asset_Name := openGL.null_Asset; Texture : in openGL.asset_Name := openGL.null_Asset;