playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 18LSC

Pages: 1 2 [3]
31
Playmaker Help / Add force to parented object only on one axis
« on: March 13, 2018, 09:24:30 AM »
I have made a pickup script, which parents the held object to a small invisible cube in front the player. Which I can also mouse look rotate with a key.

I want to be able to throw the object, by adding force to it along the players Z axis.

My problem is the 2 options for adding force are "world or self", world wont work because the player is constantly rotating around. So the added force will throw the object in random directions.
And self won't work either because the held objects Z axis also keeps changing.

I want to add force to the held object that always follow the players Z (or other) axis, how do I isolate the always changing players axis and apply that direction of force to the held object each time? regardless of the world or the held objects personal axis? :-\  thank you.

32
Action Requests / Re: Limit Look at Rotation
« on: March 13, 2018, 08:24:42 AM »
Bump an old post but it's the only one I found with a mod saying they were actually making this custom code... did it ever come out? :/

Or has this been solved elsewhere? I also want a "smooth Look at" with a rotation limit on X/Y based on what you set position for zero (facing forward) is, for turrets or security cameras that follow the player, but wont clip through the wall its attached to.
So in that case I'd only want 180 degrees left to right, maybe 90 up and down limit.

I'm stumped on how to make this myself.  :(

Pages: 1 2 [3]