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
) »
How to get/set Rigidbody localPosition?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to get/set Rigidbody localPosition? (Read 2649 times)
SawyerK
Junior Playmaker
Posts: 93
How to get/set Rigidbody localPosition?
«
on:
January 25, 2020, 12:07:27 PM »
Is there an Action for this? I found get/set Rigidbody Position on the Ecosystem but it uses world space. Are there any get/set Rigidbody localPositon Action that uses the local Space of the Rigidbody? Because i cant seem to find one.
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: How to get/set Rigidbody localPosition?
«
Reply #1 on:
January 27, 2020, 01:10:27 AM »
Hi,
Rigidbody should never be parented, this is creating problems for the physics engine, instead they should be connected using joints.
Can you explain your use case as to why you have it parented?
Bye,
Jean
Logged
SawyerK
Junior Playmaker
Posts: 93
Re: How to get/set Rigidbody localPosition?
«
Reply #2 on:
January 27, 2020, 08:42:14 AM »
Hi,
Thank you for the reply. I have a FP character that can pick up rigidbody objects, and i parent the rigidbody to the player camera so it always in front of the player and that's why i need to get, then set the rigidbody's position, so it remains in front of the player even if phisics affect it.
I have the pickup object Actions here:
https://hutonggames.com/playmakerforum/index.php?topic=21582.0
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: How to get/set Rigidbody localPosition?
«
Reply #3 on:
January 29, 2020, 08:04:13 AM »
hi,
then, just set the local position of the gameobject itself, it doesn't matter that it has a rigidbody on it.
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
How to get/set Rigidbody localPosition?