Difference between revisions of "R3d.SphereShape"
From GiderosMobile
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
=== Description === | === Description === | ||
| − | The SphereShape class describes a sphere collision shape centered at the origin of the | + | The SphereShape class describes a sphere collision shape centered at the origin of the collider. |
| + | |||
| + | You only need to specify the radius of the sphere to create it. | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
| − | [[r3d.SphereShape.new]] ''creates a new collision sphere shape''<br/> | + | [[r3d.SphereShape.new]] ''creates a new collision sphere shape''<br/><!--GIDEROSMTD:r3d.SphereShape.new(radius) creates a new collision sphere shape--> |
| − | <!-- GIDEROSMTD:r3d.SphereShape.new(radius) creates a new collision sphere shape --> | + | |
| + | [[r3d.SphereShape:setRadius]] ''sets the radius of the collision sphere shape''<br/><!--GIDEROSMTD:r3d.SphereShape:setRadius(number) sets the radius of the collision sphere shape--> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
Latest revision as of 04:29, 19 December 2025
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2019.10
Description
The SphereShape class describes a sphere collision shape centered at the origin of the collider.
You only need to specify the radius of the sphere to create it.
Methodsr3d.SphereShape.new creates a new collision sphere shape r3d.SphereShape:setRadius sets the radius of the collision sphere shape |