Away3D Forum http://away3d.com/forum/ Away3D Forum en Copyright 2017 2017-04-30T20:17:01+00:00 Does anyone have an old source of away-physics bullet? http://away3d.com/forum/viewthread/6220/ http://away3d.com/forum/viewthread/6220/#When:20:17:01Z <p>Hello everyone,<br /> Does anyone have an old source of away-physics bullet? (cpp source for alchemey)<br /> We need the bullet source that matches away-physics 0.96.<br /> If you have an old backup of these files it would be very helpful.<br /> Regards,<br /> Cyberix3D team</p> 2017-04-30T20:17:01+00:00 Could not find definition awayphisics. http://away3d.com/forum/viewthread/6171/ http://away3d.com/forum/viewthread/6171/#When:17:07:06Z <p>Above flesh profesional CS6,<br /> Library swc connected in a standard way,but when you compile the project I get an error can not be found class awayphisisc…Tried different versions of libraries from different sources.???</p> 2016-09-25T17:07:06+00:00 How to build AwayPhysics for AS3? http://away3d.com/forum/viewthread/6132/ http://away3d.com/forum/viewthread/6132/#When:22:07:15Z <p>Hi, I’m having problems to build from scratch. There isn’t any make file included and compiling the AwayPhysics.c directly doesn’t work either. Has somebody any idea how to compile the framework to a swc file?</p> <p>The sources I’m using are from:<br /> <a href="https://github.com/away3d/awayphysics-core-fp11">https://github.com/away3d/awayphysics-core-fp11</a></p> <p>Thanks</p> 2016-07-25T22:07:15+00:00 awayphysics on typeScript? http://away3d.com/forum/viewthread/5258/ http://away3d.com/forum/viewthread/5258/#When:00:24:37Z <p>have any alternative physics engine on typescipt? sorry my english</p> <p>thanks again</p> 2014-01-24T00:24:37+00:00 Support is still working? http://away3d.com/forum/viewthread/5889/ http://away3d.com/forum/viewthread/5889/#When:05:06:01Z <p>Anybody home?</p> 2015-06-26T05:06:01+00:00 How to make a spring with 6DOF? http://away3d.com/forum/viewthread/5884/ http://away3d.com/forum/viewthread/5884/#When:07:54:12Z <p>Hello.<br /> I make the car wheel using AWPGeneric6DofConstraint.<br /> Everything works except suspension. The wheel is fixed very hard.<br /> Class AWPVehicleTuning have properties of suspension. How to set analogous properties for AWPGeneric6DofConstraint?</p> 2015-06-21T07:54:12+00:00 Collision Detection - Find which side of a cube is face up http://away3d.com/forum/viewthread/5876/ http://away3d.com/forum/viewthread/5876/#When:14:22:18Z <p>Ok, so having scoured the web and here. I’ve not found much of use and don’t expect to get much in the way of response here, certainly of any use anyways, no offence.</p> <p>So I’m using Away 3D 4.1.6 and Away Physics to create a dice roll off a back wall of a large box/basin shape. I’ve been able to create a lovely natural looking roll. What I’m struggling with is finding which face is face up after it has stopped rolling.</p> <p>I’ve seen the jiglib tutorial <a href="http://code.tutsplus.com/tutorials/throwing-dice-with-the-jiglib-physics-engine-and-away3d--active-1956">here</a><br /> which has a supposed solution in it’s comments but this is no help since jiglib has not been updated to work with Away 3D 4.1.6 only the original Away 3D 4 before the way the primitives creation was changed and I need it use the most recent version.</p> <p>I’ve also seen this function below on many a page here but it’s not accurate as you can have more than one vector at above 0.5 at times, meaning it gives which ever one was called first and not necessarily the right one. I did try to modify it to make it more accurate but still ended up with something inaccurate.</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">Math</span><span style="color: #007700">.</span><span style="color: #0000BB">abs&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">diceRb</span><span style="color: #007700">.</span><span style="color: #0000BB">up</span><span style="color: #007700">.</span><span style="color: #0000BB">y</span><span style="color: #007700">)&nbsp;&gt;</span><span style="color: #0000BB">0.5</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">diceRb</span><span style="color: #007700">.</span><span style="color: #0000BB">up</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rollResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">else<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rollResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">6</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">Math</span><span style="color: #007700">.</span><span style="color: #0000BB">abs&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">diceRb</span><span style="color: #007700">.</span><span style="color: #0000BB">front</span><span style="color: #007700">.</span><span style="color: #0000BB">y</span><span style="color: #007700">)&nbsp;&gt;</span><span style="color: #0000BB">0.5</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">diceRb</span><span style="color: #007700">.</span><span style="color: #0000BB">front</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rollResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">else<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rollResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">4</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">Math</span><span style="color: #007700">.</span><span style="color: #0000BB">abs&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">diceRb</span><span style="color: #007700">.</span><span style="color: #0000BB">right</span><span style="color: #007700">.</span><span style="color: #0000BB">y</span><span style="color: #007700">)&nbsp;&gt;</span><span style="color: #0000BB">0.5</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">diceRb</span><span style="color: #007700">.</span><span style="color: #0000BB">right</span><span style="color: #007700">.</span><span style="color: #0000BB">y&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rollResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">5</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">else<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rollResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">}<br />&nbsp;&nbsp;&nbsp;}&nbsp;</span> </span> </code></div> <p>I’ve also tried to use rays on each side of my cube and try to detect whether they are intersecting with the floor object once it has stopped but I get the result that they all are so I must be doing something incorrectly when checking intersection.</p> <p>Surely someone has figured this out? But it seems to be a common question and no obvious solution shown. Accuracy is of high importance here. Does anyone have any ideas about this in the current version of Away 3D and Away Physics. Anything I have found has related to older versions. Also given that there is no documentation for the physics part this is getting kinda difficult.</p> <p>I feel there should be a simple enough solution and I should be able to use the up/right/front vector to get the correct face but I’ve found no method that is 100% accurate. If anyone can point me in a better direction please say. I’ve studied the tutorials but none have them really have enough information in them that match what I wish to do.</p> <p>&nbsp;</p> 2015-05-22T14:22:18+00:00 Kinematic objects? http://away3d.com/forum/viewthread/2604/ http://away3d.com/forum/viewthread/2604/#When:15:40:47Z <p>Hello. <br /> I am trying to create kinematic object behavior - like elevator or other objects, that are animated by code (do not react to anything) and push other rigid bodies around.<br /> I am using rigid body with 0 mass and modifying it’s position directly - but I am getting lot’s of errors - some objects are pushed, but most start to jiggle and penetrate my kinetic object and other objects. </p> <p>What would be the best way to create kinematic objects and how to get rid of all the jiggling and penetration errors? <br /> I think this is a must have feature.</p> <p><br /> I also noticed that with CF_KINEMATIC_OBJECT object can’t be positioned - it just sits at 0,0,0.</p> 2012-06-08T15:40:47+00:00 Multiple dynamics worlds http://away3d.com/forum/viewthread/5850/ http://away3d.com/forum/viewthread/5850/#When:06:08:36Z <p>Hi. Is it possible to have multiple dynamics worlds in awayphysics?</p> <p>I am working on a multiplayer game server that has to support players in different game levels at the same time. I want to isolate physics of each level from the others. All I need from AWP is collision detection.</p> <p>I see there is a Singleton holding the AWPDynamicsWorld, perhaps it looks like there can be only one. Maybe instantiating many AWPCollisionWorld could work? Any idea on the subject? Thanks in advance</p> 2015-05-04T06:08:36+00:00 Only collision detection? http://away3d.com/forum/viewthread/5841/ http://away3d.com/forum/viewthread/5841/#When:16:32:38Z <p>It is possible to disable the “physic emulation” of an object but still detect the collision with the kinematic object (user)? an only collision detection mode?<br /> -if i set the scene object as kinematic (as the user) i can’t set the position and detections are not detected.<br /> As far as i know it should be some properties in AWPCollisionObject and AWPCollisionFlagas but i can’t disable the “physic response” and only get the collision detection to manage it manually.</p> 2015-04-16T16:32:38+00:00