Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Issues Help I NEED HELP!
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#13
RE: I NEED HELP!

(02-18-2013, 03:05 PM)TheGreatCthulhu Wrote: About the "500 thing":

The 3 numerical values are the (x, y, z) components of the force vector - I don't know how familiar you are with vector math, but essentially, the numbers determine the orientation of a vector in a 3D coordinate system, as well as the magnitude (length) of that vector - that is, the direction and the intensity of the force.

Now, there's "world" coordinate system - the one you see associated with the grid in the editor, that is, the one used to position things in the level; and there are "local" coordinate systems, which are specific to each object/entity - these are the ones the level editor uses for rotations.

So (0, 0, 500) represents a force that is directed along the local z-axis, and has the magnitude of 500.
(0, 0, -500) would also be a force along the local z-axis, same magnitude, but it now points in the opposite direction..
(500, 0, 0) is the vector of the same magnitude, but it's now directed along the local x-axis (90degs from the previous orientations in the horizontal plane).
(0, 500, 0) is a same-length vector, pointing directly up along local the y-axis.

(500, 500, 500) has a somewhat larger magnitude than before (it's a diagonal of a 500x500x500 cube), but it now points in a different direction, along the x=y=z line.

In the image below the coordinate system is setup so that the z-axis is up, but the same principles apply - you get the idea.
[Image: 235-3D-vector.png]
So if i want the door to be banging on the X-Axis, i script the force as
PHP Code: (Select All)
(5000

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-18-2013, 03:17 PM
Find


Messages In This Thread
I NEED HELP! - by PutraenusAlivius - 02-17-2013, 12:21 PM
RE: I NEED HELP! - by No Author - 02-17-2013, 12:45 PM
RE: I NEED HELP! - by i3670 - 02-17-2013, 12:48 PM
RE: I NEED HELP! - by PutraenusAlivius - 02-17-2013, 02:18 PM
RE: I NEED HELP! - by 343 - 02-17-2013, 03:41 PM
RE: I NEED HELP! - by No Author - 02-18-2013, 12:17 AM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 09:58 AM
RE: I NEED HELP! - by No Author - 02-18-2013, 10:16 AM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 02:05 PM
RE: I NEED HELP! - by Adrianis - 02-18-2013, 02:17 PM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 02:43 PM
RE: I NEED HELP! - by TheGreatCthulhu - 02-18-2013, 03:05 PM
RE: I NEED HELP! - by PutraenusAlivius - 02-18-2013, 03:17 PM
RE: I NEED HELP! - by Adrianis - 02-18-2013, 11:04 PM



Users browsing this thread: 1 Guest(s)