R3d.SphereShape: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:r3d.SphereShape --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.pngFile:Plat..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
<!-- GIDEROSOBJ:r3d.SphereShape -->
<!-- GIDEROSOBJ:r3d.SphereShape -->
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
'''<translate>Available since</translate>:''' Gideros 2019.10<br/>
'''Available since:''' Gideros 2019.10<br/>
=== <translate>Description</translate> ===
 
=== 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.
 
{|-
{|-
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
=== Methods ===
[[Special:MyLanguage/r3d.SphereShape.new|r3d.SphereShape.new]] ''<translate>create a new sphere shape</translate>''<br/><!-- GIDEROSMTD:r3d.SphereShape.new(size) create a new sphere shape -->
[[r3d.SphereShape.new]] ''creates a new collision sphere shape''<br/><!--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;"|
|}
|}
----
*'''[[R3d.Shape]]'''
*'''[[ReactPhysics3D]]'''

Latest revision as of 03: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.

Methods

r3d.SphereShape.new creates a new collision sphere shape

r3d.SphereShape:setRadius sets the radius of the collision sphere shape