playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Applying Force to Game Object[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Applying Force to Game Object[SOLVED] (Read 3038 times)
fromfame
Junior Playmaker
Posts: 82
Sloppy PM Veteran
Applying Force to Game Object[SOLVED]
«
on:
September 22, 2013, 08:57:52 AM »
Hey, im trying to understand how to apply force to a GO that would move in a direction depending on where the player is facing.
All the GOs that would be pushed have rigid bodies.
thanks!
«
Last Edit: September 25, 2013, 02:07:12 AM by jeanfabre
»
Logged
Lane
Administrator
Hero Member
Posts: 2511
Mender of the past
Re: Applying Force to Game Object
«
Reply #1 on:
September 22, 2013, 11:22:29 AM »
use Add Force, then choose in relation to Self instead of World axis. When the go turns it will always be pushing that force relative to its left/right/fwd/reverse.
Logged
Products by Cleverous
||
Vault Core
: Database
||
Vault Inventory
: Multiplayer Inventory
||
Vault Attributes
: Character Stats
||
That Hurt!
: Dmg Floaties
||
Quinn
: 3D
fromfame
Junior Playmaker
Posts: 82
Sloppy PM Veteran
Re: Applying Force to Game Object
«
Reply #2 on:
September 23, 2013, 05:42:55 AM »
Thanks, i'd appreciate a more in depth reply.
im trying to replicate the force from star wars,
its a first person game im making and im trying to have the player push boxes around.
«
Last Edit: September 23, 2013, 05:47:42 AM by fromfame
»
Logged
Lane
Administrator
Hero Member
Posts: 2511
Mender of the past
Re: Applying Force to Game Object
«
Reply #3 on:
September 23, 2013, 07:20:49 AM »
Ah ok.
This might help:
http://www.hutonggames.com/sampleScenes/AddForce/AddForce.html
He's storing the Normal, Point and Object, then apply force on those same variables. For Area of Effect, you'll need something else.
I would personally get the $5 Circular Gravity Script from the asset store and create a negative gravity effect that expands from the player, pushing everything away. It handles the AoE much better than other traditional methods would, I think. (btw, ironically his name is also Lane, but is not me.)
Logged
Products by Cleverous
||
Vault Core
: Database
||
Vault Inventory
: Multiplayer Inventory
||
Vault Attributes
: Character Stats
||
That Hurt!
: Dmg Floaties
||
Quinn
: 3D
fromfame
Junior Playmaker
Posts: 82
Sloppy PM Veteran
Re: Applying Force to Game Object
«
Reply #4 on:
September 24, 2013, 07:52:08 AM »
wow i suck at physics, i bought it, its amazing well worth $15, thanks man!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Applying Force to Game Object[SOLVED]