Jump to content


[info] Geometry system


No replies to this topic

#1 Kris

    <Custom title available>

  • Project Team
  • 3825 posts

Posted 30 June 2007 - 13:59

So you're wondering why is those "Geometry" lines your object codes or asking your self what is there purpose? Well, Those codes exist for one purpose and there purpose is to give your object the ability to detect other objects in the game world and so they wont drive thru eachother.

The Object Collision system in Generals consist of this following lines:

Geometry = "insert geometry type" ;Collision Geometry
GeometryMajorRadius = XX ;Collision X Coords
GeometryMinorRadius = XX ;Collision Y Coords
GeometryHeight = XX ;Collision Z Coords
GeometryIsSmall = [Yes/No] ;Is the geometry small?

The height, width and length can be defined to your desired length, hight or width eventhough they will not properly work with objects that have dynamic shapes but it will do if you want your object get detected by objects..

The "Geometry" Defines what type of Geometry will the object use in the game world, Here's a list of Available Geometries:
BOX
SPHERE
CYLINDER

The "GeometryMajorRadius" parameter Defines the length of the object's Geometry in the X axis...
and The "GeometryMinorRadius" parameter Defines the width of the object's Geometry in Y Axis. Last, The "GeometryHeight" Defines how tall the Geometry in the Z axis. I think the "GeometryISSmall" ,if set, is saying something like this to the engine: "this object's geometry is small so put LESS effort in the pathfinding engine."


In the "BOX" shape parameter, You are allowed to use the following:
GeometryMajorRadius
GeometryMinorRadius
GeometryIsSmall
GeometryHeight

While in "CYLINDER", Your allowed to use:
GeometryMajorRadius
GeometryIsSmall
GeometryHeight

This also apply to the SPHERE Geometry Shape type.

PS: This is my FIRST Tutorial so be nice to it :)

Edited by Chris, 05 January 2008 - 17:54.










1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users