wiki.sine.space | sinespace

Difference between revisions of "Components/GravityZone"

From wiki.sine.space
Jump to: navigation, search
(Created page with "{{Template:Infobox |above=GravityZone |subheader=Component |image=500px |caption=Component's Inspector | label1 = Priority | data1 = Sets the priorit...")
 
Line 18: Line 18:
  
 
'''local Gravity''' Sets the local gravity for x,y,z axis.
 
'''local Gravity''' Sets the local gravity for x,y,z axis.
 +
 +
As an example, the default gravity could be Priority = 10, and the axis is (0,-1,0). If you want to make an environment like moon, set the Priority < 10, otherwise Priority > 10.
 
   
 
   
 
{{Component Navbox}}
 
{{Component Navbox}}

Revision as of 02:43, 9 January 2019


GravityZone
Component
GravityZone.jpg

Component's Inspector

Priority Sets the priority
Local Gravity Set the gravity values for x,y,z axis


This component is used to override the default Gravity of a region/Area

Create an empty object add GravityZone component. Add a Box collider with isTrigger checked, edit the constrains of the box collider to set the area size.

Priority Sets the priority of the gravityzone

local Gravity Sets the local gravity for x,y,z axis.

As an example, the default gravity could be Priority = 10, and the axis is (0,-1,0). If you want to make an environment like moon, set the Priority < 10, otherwise Priority > 10.