Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
511 bytes
|
Line | |
---|
1 | package com.framsticks.model; |
---|
2 | |
---|
3 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
4 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
5 | import com.framsticks.util.math.Point3d; |
---|
6 | |
---|
7 | /* |
---|
8 | */ |
---|
9 | @FramsClassAnnotation |
---|
10 | public class MechPart extends BasePart { |
---|
11 | |
---|
12 | @ParamAnnotation(id = "vol") |
---|
13 | public double volume = 0.0; |
---|
14 | |
---|
15 | @ParamAnnotation |
---|
16 | public double vx, vy, vz; |
---|
17 | |
---|
18 | public Point3d getVelocity() { return new Point3d(vx, vy, vz); } |
---|
19 | public void setVelocity(Point3d v) { vx = v.x; vy = v.y; vz = v.z; } |
---|
20 | |
---|
21 | |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.