playMaker

Author Topic: character controller rigidbody velocity and jump [SOLVED]  (Read 3937 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
character controller rigidbody velocity and jump [SOLVED]
« on: July 31, 2014, 01:43:02 PM »
i'm trying to setup my character player with character Controller, wich as an attached rigidbody in and works perfectly for base mouvments on ground.

but for making it jumping how can it be done ?

i used character motor script, but it doesn't looks very good
i added a rigidbody to add force but it doesn't work certainly because of conflict with the one hidden in character controller...
« Last Edit: August 07, 2014, 05:17:55 PM by blackant »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: character controller rigidbody velocity and jump
« Reply #1 on: August 01, 2014, 06:13:12 AM »
after more testing with character controller, it seems that the attached rigdbody is less efficiant than the separated rigidbody.

for exemple while using freeze position Z on 2 characters when they meet and collide, it doesn't prevent them to move in Z axis...


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: character controller rigidbody velocity and jump
« Reply #2 on: August 06, 2014, 06:41:27 AM »
Hi,

 Have you studied the various samples and threads around on the jump topic? I remember I did a lot last year on various jumps samples and explanations.

 Bye,

 Jean

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: character controller rigidbody velocity and jump
« Reply #3 on: August 07, 2014, 05:10:57 PM »
i fund the best way to solve my problem was to check in translate "Fixed update"
so no need to use character controller, and better collision at the end !

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: character controller rigidbody velocity and jump [SOLVED]
« Reply #4 on: August 08, 2014, 07:22:14 AM »
Hi,

 yes, Rule of thumbs  anything physics related must be operated on FixedUpdate ( like any camera work must be handled on LateUpdate).

 For this I have started making more and more custom actions exposing conviently when you want the action to proceed, look for all actions with "advanced" in them on the ecosystem.

 Bye,

 Jean

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: character controller rigidbody velocity and jump [SOLVED]
« Reply #5 on: August 08, 2014, 04:54:51 PM »
thanks looks really usefull i'll check it