LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 650 users online 222713 members 1248 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
justcallmepaige
Music: MY MUSIC: HIM Incubus Darren Hayes Sava...
Mood: Disappointed
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
4 online / 39 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

making a ball bounce in x3d
Replies: 1Last Post Nov. 11 4:50am by King Kong
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( King Kong )


Ghostbuster

Patron
Reply
ok, i can get the ball to move but not bounce.

I got this code from blackboard.

<?xml version="1.0" encoding="UTF-8"?>
<X3D profile='Interchange' version='3.1'>
<Scene>
 <Background skyColor='1 1 1'/>
 
 <PositionInterpolator  DEF='inter' key='0 0.5 1' keyValue='5.0 0.0 0.0  1.0 1.0 1.0 -1 -1 0.0'/>
 <ColorInterpolator DEF='colinter' key='0 0.5 1' keyValue='1.0 0.0 1.0  0.5 0.0 1.0  0.0 0.5 1.0'/>

 <TimeSensor DEF='clk' cycleInterval='1' enabled='false' loop='true'/>

 <TouchSensor DEF='ts' description='touch to activate'/>
 <Transform DEF='boxtf'>
  <Shape>
  <Sphere/>
   <Appearance>
    <Material DEF='boxmat'/>
   </Appearance>
  </Shape>
 </Transform>

 <ROUTE fromNode='ts' fromField='isActive' toNode='clk' toField='enabled'/>

 <ROUTE fromNode='clk' fromField='fraction_changed' toNode='inter' toField='set_fraction'/>
 <ROUTE fromNode='clk' fromField='fraction_changed' toNode='colinter' toField='set_fraction'/>

 <ROUTE fromNode='inter' fromField='value_changed' toNode='boxtf' toField='set_translation'/>
 <ROUTE fromNode='colinter' fromField='value_changed' toNode='boxmat' toField='set_diffuseColor'/>
</Scene>
</X3D>

-------
Pandora didn't think outside the box


4:31 am on Nov. 11, 2009 | Joined: Feb. 2006 | Days Active: 1,090
Join to learn more about King Kong Wales | Straight Male | Posts: 26,342 | Points: 38,342
LiveWire Humor
( King Kong )


Ghostbuster

Patron
Reply
fuck yes, bounces, at an angle  

-------
Pandora didn't think outside the box

4:50 am on Nov. 11, 2009 | Joined: Feb. 2006 | Days Active: 1,090
Join to learn more about King Kong Wales | Straight Male | Posts: 26,342 | Points: 38,342
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic