University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Turning in place | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Turning in place
June 30, 2016
8:18 am
Avatar
Member
Members
Forum Posts: 10
Member Since:
January 12, 2014
sp_UserOfflineSmall Offline

Hi!

Quick question: is there a locomotion bml command to have a character turn x degrees in place?

The facing parameter only works if the character actually moves first.

Maybe playing an animation like ChrUtah_Turn90Lf01 and then triggering an event, which would then call SBCharacter.setHPR()? It would have to be just before the "relax" phase, though.

How do you guys think I should approach this?

July 1, 2016
12:05 am
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I'll need to fix the locomotion BML to allow that. At the moment, if a locomotion command is given and the target location is close enough to where you are, then the locomotion assumes that it has arrived and won't turn in place. 

 

There is, however, a turn-in-place animation blend that you can use instead, so you can do this:

<blend name="mocapIdleTurn" sbm:wrap-mode="Once" x="45"/>

where the 'x' value is the number of degrees to turn. 

 

Ari

July 1, 2016
5:57 am
Avatar
Member
Members
Forum Posts: 10
Member Since:
January 12, 2014
sp_UserOfflineSmall Offline

That worked great. Thanks a lot!

July 1, 2016
1:35 pm
Avatar
Member
Members
Forum Posts: 10
Member Since:
January 12, 2014
sp_UserOfflineSmall Offline
Awaiting Moderation

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: anton.1988dmon, hastingswiggins7, MyraRoberso52, Nasreen Zamir, jeff345qs, ledretrofitlights, subduedcorps4964, JaimePatrick54, Herbertnes, OliveSantos53
61 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 51

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 67

Members: 55092

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 429

Posts: 2348