Jump to content

height width and depth


SuperSkunk

Recommended Posts

I didn't answer myself. I know how to find xyz but I need help finding the H/W/D because I can't see it on the admin panel, I'm trying to place a green zone on area 51 and its asking me to put in the coords which I'm doing but I can't seem to find the h/w/d.

safecol = createColCuboid ( -213.8536529541, 1875.0391845703, 13.14695930481, 100, 0, 100 ) 
safeZoneRadar = createRadarArea ( -213.8536529541, 1875.0391845703, 200, 150, 0, 255, 0, 120 ) 

Link to comment

createColCuboid

This function creates a collision cuboid. This is a shape that has a position, width, depth and height. See Wikipedia for a definition of a cuboid. The XYZ of the col starts at the southwest bottom corner of the shape.

So you fill in the southwest bottom corner as fx, fy and fz. And the width, depth and heigth would be

fx1, fy1, fz1 = --southwest bottom corner coordinates 
fx2, fy2, fz2 = --north east upper corner coordinates 
width = fx2 - fx1 
depth= fy2 - fy1 
heigth = fz2 - fz1 

I would use "createColRectangle" btw, no need for a z-coordinate

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...